package com.loukou.lkt.lkt.enums;


public enum WmsOutOrderTypeEnum {

	TYPE_UNKNOWN( -1, "" ),
	
	TYPE_RETURN( 2, "采购退货" ),
	
	TYPE_ALLOCATION( 5, "调拨" ),
	
	TYPE_CHECK( 6, "盘亏" );
	
	private int type;
	private String comment;
	
	WmsOutOrderTypeEnum( int type, String comment) {
		this.type = type;
		this.comment = comment;
	}
	
	public static WmsOutOrderTypeEnum parseType(int type) {
		for (WmsOutOrderTypeEnum e : WmsOutOrderTypeEnum.values()) {
			if (e.type == type) {
				return e;
			}
		}
		return TYPE_UNKNOWN;
	}
	
	public int getType() {
		return type;
	}
	
	public void setType(int type) {
		this.type = type;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	
	
}
